﻿using System;
using System.Collections.Generic;
using DataService.Enums;

namespace DataService.Interfaces;

public interface IAlarmServer : IDisposable
{
    int DisableCondition(string sourceName, AlarmType type);
    int EnableCondition(string sourceName, AlarmType type);
    int RemoveConditon(string sourceName, AlarmType type);
    int RemoveConditons(string sourceName);
    int AckConditions(params ConditionBase[] conditions);
    IList<ConditionBase> QueryConditions(string sourceName);
    IEnumerable<AlarmItem> AlarmList { get; }
    IList<ConditionBase> ConditionList { get; }
    IList<ConditionBase> ActivedConditionList { get; }
}
